//
//  HTCityDetailModel.m
//  HeartTravel
//
//  Created by lanou on 15/11/2.
//  Copyright © 2015年 陈文杰. All rights reserved.
//

#import "HTCityDetailModel.h"

@implementation HTCityDetailModel
- (void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"description"]) {
        self.descrip = value;
    }else if ([key isEqualToString:@"tips"]){
        for (NSDictionary *dic in value) {
            self.iId = dic[@"poi"][@"id"];
            self.type = dic[@"poi"][@"type"];
            self.lat = dic[@"poi"][@"location"][@"lat"];
            self.lng = dic[@"poi"][@"location"][@"lng"];
        }
    }else{
        [super setValue:value forKey:key];
    }
}
@end
